import java.util.Random;
public class Calculator {
    public static void main(String[] args){
        Random random = new Random();
        int a ,b ,flag,sum,count = 0;
        char c;
        for (int i = 1;i <= 50;i++){
            do{
                a = random.nextInt(100) + 1;
                b = random.nextInt(100) + 1;
                flag = random.nextInt(2);
                if (flag == 1){
                    c = '+';
                    sum = a + b;
                }else{
                    c = '-';
                    sum = a - b;
                }
            }while(sum > 100 || sum <0);
            count++;
            System.out.print(String.format("%-2d%s%-2d=%-3d  ",a,c,b,sum));
            if (count % 10 == 0)System.out.println();
        }
    }
}